Skip to content

fix(formcite): opens in seconds, traffic lights clear, arXiv lookups and pasted ids work, Preferences and the Agents button in the Form apps' form (0.15.1) - #17

Merged
nodemode-ai merged 8 commits into
mainfrom
fix/startup-and-traffic-lights-0.15.1
Dec 1, 2026
Merged

nodemode-ai merged 8 commits into
mainfrom
fix/startup-and-traffic-lights-0.15.1

Conversation

@nodemode-ai

Copy link
Copy Markdown
Contributor

fix(formcite): opens in seconds, traffic lights clear, arXiv lookups and pasted ids work, Preferences and the Agents button in the Form apps' form (0.15.1)

Summary

FormCite 0.15.1 fixes seven things the owner reported on macOS in 0.15.0.

  1. Slow start (20 s first launch, 30 s second). The shell builds the main window unseen and shows it when the page invokes app_ready, or after a 20 s fallback. v0.1.0 removed that invoke from revealApp before the desktop shell existed, and it was never put back, so every launch waited out the fallback after the engine was already up. revealApp invokes app_ready again. Each two-frame wait also settles after 120 ms, as FormDeck's does, so a window at alpha 0 cannot hold it back. The engine is not the cause: on Linux it answers in 0.7 to 0.9 s frozen (onefile and onedir), and macOS already freezes onedir into Resources/engine, as FormVis does. Freeze mode, bundling config and build scripts are unchanged.
  2. Traffic lights over "FormCite". The pre-paint script sets data-fc-lights="inset" in the macOS shell. --fc-traffic-w (78 px, FormVis's value) is applied as padding-inline-start to the sidebar head when the menus are native, or to the in-window menu bar when they are in the window. It is dropped in full screen (isFullscreen on resize). The sidebar is shared by every view, so this also covers Preferences (item 6).
  3. arXiv lookups failing. export.arxiv.org/api/query answers 403 here to every header variant, while the rest of arXiv answers 200. arXiv's API group reports heavy load and rate limits. Lookups now fall back to arXiv's OAI-PMH service (oaipmh.arxiv.org, registered as arxiv-oai with its own switch). Recent calls now show the whole status, with a full tooltip on each row.
  4. Identifier forms. The engine now also detects bare old-style ids (hep-th/9901001) and a kind word followed by a space (arXiv 2402.06196). The Add dialog names the pasted kind as you type. Home and the Add dialog both say an arXiv id can be pasted.
  5. Preferences in the Form apps' form. It now follows FormVis and FormDeck: a separate 232 px section rail and a Preferences card with a head. Only the picked section shows (no accordion, no scroll spy). Every setting and handler is kept, and switching sections causes no layout shift.
  6. Agents button at the top left. It uses FormVis's agent glyph and the title "Agents", sits in the sidebar head after the inset and the version, dispatches view.dock, and its aria-pressed follows data-ft-dock. The Preferences, Agents, Dock switch is the same dockShown preference as before.

Tests

  • npm run build (tsc --noEmit and vite build): passes.
  • python -m compileall on the backend, and the engine's --selfcheck: passes, version 0.15.1.
  • Style regression set (python -m app.style.regression.run, with a prebuilt formcite_style): 12 of 12 pass.
  • Engine start, from source and frozen with PyInstaller onefile and onedir on Linux: under 1 s in every run, and a second run was never slower.
  • Live arXiv lookups of 2402.06196, hep-th/9901001 and 0704.0001v2: complete through the OAI fallback after the API's 403.
  • Identifier detection for every listed form, in the engine and in the window's hint.
  • Built window in headless Chrome, CPU 4x, with a stand-in macOS Tauri shell: app_ready invoked once; the inset is present on first paint and set to full in full screen; the Agents button toggles the dock and its pressed state; six Preferences sections each show alone with the card and rail fixed; layout shift 0.
  • Not run: any build or launch on macOS or Windows, and the native macOS menu path, which falls back to the in-window bar under the stand-in shell.

@nodemode-ai
nodemode-ai requested a review from gbarnai as a code owner December 1, 2026 23:20
@nodemode-ai
nodemode-ai merged commit 41cadce into main Dec 1, 2026
7 checks passed
@nodemode-ai
nodemode-ai deleted the fix/startup-and-traffic-lights-0.15.1 branch December 1, 2026 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant